package com.qinggeng.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 订单记录表对象 orders_record
 *
 * @author smallfish
 * @date 2020-12-22
 */
@Data
public class OrdersRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 配送点Id */
    @Excel(name = "配送点Id")
    private Long pointId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordersNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 记录日期 */
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String recordDate;

    /** 是否发送（0=未发送 1=已发送） */
    @Excel(name = "是否发送", readConverterExp = "0==未发送,1==已发送")
    private Integer send;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pointId", getPointId())
            .append("ordersNo", getOrdersNo())
            .append("userId", getUserId())
            .append("recordDate", getRecordDate())
            .append("send", getSend())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
